#include "Component.h"
#include "Singleton.h"
#include "TComponentAllocator.h"

class Character;

class CastSpellComponent : public Component
{
public:
    enum {SortKey = 127};
public:
    void onstart() override;
    void onremove() override;
    void frameupdate() override;
public:
    void oncastspell(void* param);
private:
    Character* getowner();
};

DECLARE_COMPONENT(CastSpellComponent)